package net.yla.smartbus.module.ba.right.right.mapper;

import net.yla.smartbus.module.ba.right.right.entity.RightsDO;
import net.yla.smartbus.module.ba.right.right.query.QueryOfActual;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Date: 2020-08-24 10:44
 * @Author: Being Nobody
 * @Version: 1.0
 */
public interface RightsMapper {
    int deleteByPrimaryKey(Integer rightId);

    int insert(RightsDO record);

    int insertSelective(RightsDO record);

    RightsDO selectByPrimaryKey(Integer rightId);

    int updateByPrimaryKeySelective(RightsDO record);

    int updateByPrimaryKey(RightsDO record);

    List<RightsDO> rightsAll(List<Integer> roles);

    List<RightsDO> actual(QueryOfActual query);

    int delete(RightsDO rightsDO);

    int insertList(List<RightsDO> list);

    List<Integer> platformIds(List<Integer> roleIds);

    List<Integer> menuIds(List<Integer> roleIds);

    int updateByRoleId(Integer roleId);

    int deleteTrueByRoleId(Integer roleId);
}
